<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--公司信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="<%=request.getContextPath()%>/css/cssCn.css"
			type="text/css" rel="stylesheet">
		<%@ include file="/comm.jsp"%>
<script>
	$(document).ready(function() {
		$("#menu_1").mouseover(function() {
			$(this).css("background","#FFFFFF");
		});
		$("#menu_1").mouseout(function() {
			$(this).css("background","#EAF0FB");
		});
		
		$("#menu_2").mouseover(function() {
			$(this).css("background","#FFFFFF");
		});
		$("#menu_2").mouseout(function() {
			$(this).css("background","#EAF0FB");
		});
		
		$("#menu_1").click(function() {
			$d("div_Info1").style.display="block";
			$d("div_Info2").style.display="none";
		});
		$("#menu_2").click(function() {
			$d("div_Info1").style.display="none";
			$d("div_Info2").style.display="block";
		});
		
		//if($d("hdfReflashflag").value=="1"){//刷新菜单
		//	window.parent.parent.frames["middFrm"].location.href="<%=request.getContextPath()%>/seal/menu";
		//}
});
</script>

<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 600;
}

.menubar {
	width: 100px;
	cursor: hand;
}
-->
</style>
	<body leftmargin="0" topmargin="0" marginheight="0">
		<s:form name="formpage" action="company_view" namespace="/seal">
			<s:token>
			</s:token>
			<div align="center">
				<s:hidden id="hdfId" name="companyInfo.id" value="%{#request.companyInfo.id}" />
				<s:hidden id="hdfReflashflag" value="%{#request.reflashFlag}" />
				<%@ include file="/messages.jsp"%>

				<s:if test="companyInfo2 != null">
					<table border="0" cellpadding="0" cellspacing="1" class="tb_input"
						id="tblone1">
						<tr class="list_tr_item">
							<td id="menu_1" class="td_title menubar">
								中文
							</td>
							<td id="menu_2" class="td_title menubar">
								English
							</td>
						</tr>
					</table>
				</s:if>

				<div id="div_Info1" style="display: block">
					<table align="center" width="650">
						<tr>
							<td align="right" width="120">
								公司代码:
							</td>
							<td>
								${companyInfo.companyId } &nbsp;等级:${companyInfo.level }
							</td>
						</tr>
						<tr>
							<td align="right">
								积分:
							</td>
							<td>
								${companyInfo.score }
							</td>
						</tr>
						<tr>
							<td align="right">
								公司名称:
							</td>
							<td>
								${companyInfo.companyName }
							</td>
						</tr>

						<tr>
							<td align="right">
								国家:
							</td>
							<td>
								${companyInfo.country }
							</td>
						</tr>

						<tr>
							<td align="right">
								联系电话:
							</td>
							<td>
								${companyInfo.countryCode }-${companyInfo.telRegionCode }-
								${companyInfo.telNumber }
							</td>
						</tr>

						<tr>
							<td align="right">
								联系人:
							</td>
							<td>
								${companyInfo.contact }
							</td>
						</tr>

						<tr>
							<td align="right">
								联系地址:
							</td>
							<td>
								${companyInfo.address }
							</td>
						</tr>

						<tr>
							<td align="right">
								邮政编码:
							</td>
							<td>
								${companyInfo.postcode }
							</td>
						</tr>

						<tr>
							<td align="right">
								公司网址:
							</td>
							<td>
								<a href="${companyInfo.webSite }" target="_blank">
									${companyInfo.webSite } </a>
							</td>
						</tr>

						<tr>
							<td align="right">
								公司简介:
							</td>
							<td>
								${companyInfo.introduction }
							</td>
						</tr>
						<s:if test="1==#request.currentUser.userRole" >
						<tr>
							<td colspan="2" align="center">
								<a href="<s:url action="companyInfo_editPage"></s:url>"> 修改
								</a>
							</td>
						</tr>
						</s:if>
					</table>
					<s:if test="1==#request.currentUser.userRole" >
					<s:if test='companyInfo2 == null && "zh_CN"==getLangStr()'>
						<br />为更好地向客户的向客户展示您企业信息，建议您 &nbsp;<a
							href="<s:url action="companyInfo_editPage2"></s:url>">添加英文企业信息</a>。
					</s:if>
					</s:if>
				</div>

				<s:if test='companyInfo2 != null'>
					<div id="div_Info2" style="display: none">
						<table align="center" width="650">
							<tr>
								<td align="right" width="120">
									Account:
								</td>
								<td>
									${companyInfo.companyId } &nbsp;Level:${companyInfo.level }
								</td>
							</tr>
							<tr>
								<td align="right">
									Grade:
								</td>
								<td>
									${companyInfo.score }
								</td>
							</tr>
							<tr>
								<td align="right">
									Company Name:
								</td>
								<td>
									${companyInfo2.companyName }
								</td>
							</tr>

							<tr>
								<td align="right">
									Country:
								</td>
								<td>
									${companyInfo.country }
								</td>
							</tr>

							<tr>
								<td align="right">
									Tel:
								</td>
								<td>
									${companyInfo2.countryCode }-${companyInfo2.telRegionCode }-
									${companyInfo2.telNumber }
								</td>
							</tr>

							<tr>
								<td align="right">
									Contact:
								</td>
								<td>
									${companyInfo2.contact }
								</td>
							</tr>

							<tr>
								<td align="right">
									Address:
								</td>
								<td>
									${companyInfo2.address }
								</td>
							</tr>

							<tr>
								<td align="right">
									Postcode:
								</td>
								<td>
									${companyInfo2.postcode }
								</td>
							</tr>

							<tr>
								<td align="right">
									WebSite:
								</td>
								<td>
									<a href="${companyInfo2.webSite }" target="_blank">
										${companyInfo2.webSite } </a>
								</td>
							</tr>

							<tr>
								<td align="right">
									Description:
								</td>
								<td>
									${companyInfo2.introduction }
								</td>
							</tr>
							<s:if test="1==#request.currentUser.userRole" >
							<tr>
								<td colspan="2" align="center">
									<a href="<s:url action="companyInfo_editPage2"></s:url>">Modify
									</a>
								</td>
							</tr>
							</s:if>
						</table>
					</div>
				</s:if>
			</div>
		</s:form>
	</body>
</html>